home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / develop / libsrc11.arc / WRBYTSB.C < prev    next >
C/C++ Source or Header  |  1989-04-27  |  673b  |  33 lines

  1. /*    wrbytsb.c 4.5        */
  2. /*F****************************************************************************
  3.  
  4. FUNCTION NAME:    wrbytsb    
  5.  
  6. ACTION:        Writes a character to Port C using simple strobed I/O.
  7.  
  8. PARAMETERS:
  9.         byte_value:    Byte to be written to Port C.
  10.  
  11. RETURNS:    (void)
  12.  
  13. ******************************************************************************/
  14.  
  15. #include <hc11/io.h>
  16. #include <hc11/pio.h>
  17. #include <hc11/directives.h>
  18.  
  19. SMALL
  20. void wrbytsb(byte_value)
  21.  
  22.     int    byte_value;
  23.  
  24.     {
  25.  
  26.     HC11.PIOC &= (~HNDS);        /* clear the handshake bit */
  27.  
  28.     HC11.PORTB = byte_value;    /* output the data (latch it) */
  29.  
  30.     /* possible delay here */
  31.  
  32.     }    /* end of wrbytsb    */
  33.